how to get the position of a specific element in a matrix in matlab